const getters = {
  sidebar: state => state.app.sidebar,
  device: state => state.app.device,
  token: state => state.user.token, // token快捷访问
  name: state => state.user.userInfo.username, // 对用户名的快捷访问
  userId: state => state.user.userInfo.userId,
  // 因为user模块要重写，先注销掉到时重新弄上
  staffPhoto: state => state.user.userInfo.staffPhoto, // 建立头像的快捷访问
  // token: state => state.user.token,
  // avatar: state => state.user.avatar,
  // name: state => state.user.name
  companyId: state => state.user.userInfo.companyId, // 对公司id的快捷访问
  routes: state => state.permission.routes } // 建立权限模块下的快捷访问
export default getters
